/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.co.pas.business.controller;

import za.co.pas.business.abstracts.AbstractController;
import za.co.pas.business.data.Company;
import za.co.pas.business.data.UserLoginDetails;

/**
 *
 * @author alabuschagne
 */
public class CompanyDetailController extends AbstractController
{

    public void SaveCompany(Company newCompany, UserLoginDetails changeBy)
    {
        setModelProperty("SaveCompany", newCompany, changeBy);
    }

    public void makeNewCompany(Company company)
    {
        setModelProperty("CurrentCompany", company);
    }

    public void requestMakeNewCompany()
    {
        setModelProperty("RequestCurrentCompany", new Company());
    }

    public void requestCompanyList(boolean b)
    {
        setModelProperty("RequestCompanyList", new Boolean(b));
    }

    public void requestEditCompany(Company c)
    {
        setModelProperty("RequestCurrentCompany", c);
    }



}
